﻿using System;
using System.Data;
using System.Configuration;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

/// <summary>
/// Summary description for AppConstants
/// </summary>
public class AppConstants
{
    public const String ERROR_MESSAGE = @"Sorry!<br/>System encountered a problem while saving your preference. An administrator has been notified about the details of this problem. Please try after some time.";
    public const String SLIDER_DIRECTORY = "/Images/SliderImages";
    public const String UPLOADED_RATE_DIRECTORY = "/UploadedRate";
    public const String CONFIRMATION_MSG_CUSTOM_ATTR = "ConfirmationMessage";
    public const String TEMP_DIRECTORY = "/Temp";
    public const String PROJECT_FILES = "/ProjectFiles";
    public const String CUSTOMER_FILES = "/CustomerFiles";
    public const String CONTACT_PHOTO = "/CustomerFiles/ContactPhoto";
    public const String NEWS_FILES = "/CustomerFiles/News";
    public const String ARTICLE_FILES = "/CustomerFiles/Articles";

    #region Pages
    public class Pages
    {
        #region Private Pages
        public const string CONTACT_LIST = "/Pages/Private/Contacts.aspx";
        public const string CONTACT_CHANGE = "/Pages/Private/ContactChange.aspx";
        public const string PROJECT_LIST_BY_CUSTOMER = "/Pages/Private/ProjectChange.aspx";
        public const String SUBSCRIBE_PACKAGE = "/Pages/Private/SubscribePackage.aspx";
        public const String NEWS_EDIT = "/Pages/Admin/NewsEdit.aspx";
        public const String NEWS_LIST_ADMIN = "/Pages/Admin/NewsList.aspx";
        public const String ARTICLE_LIST_ADMIN = "/Pages/Admin/ArticleList.aspx";
        public const String ARTICLE_EDIT = "/Pages/Admin/ArticleEdit.aspx";

        #endregion

        #region Public Pages
        public const String ACCESS_DENIED = "/Pages/Public/AccessDenied.aspx";
        public const String HOME_PAGE = "/Default.aspx";
        public const String LOG_IN = "/Pages/Public/Login.aspx";
        public const String ERROR = "/Pages/Public/Error.aspx";        
        public const String SHOW_CONTENT = "/Pages/Public/ShowContent.aspx";
        public const String SHOW_MESSAGE = "/Pages/Public/ShowMessage.aspx";        
        public const String GET_IMAGE = "/Pages/Public/GetImage.aspx";       
        #endregion
    }
    #endregion

    #region Value Formats
    public class ValueOf
    {
        /// <summary>
        /// Is used only for Client Side jQuery Calendar
        /// </summary>
        //public const String CALENDAR_DATE_FORMAT = "dd/mm/yy";

        public const String DECIMAL_FORMAT = "{0:0,0.00}";
        public const String DECIMAL_FORMAT_FOR_TEXTBOX = "{0:0}";
        //public const string DECIMAL_FORMAT_CALCULATION = "{0:00.#############}";
        //public const String DECIMAL_FORMAT_CALCULATION = "{0:00.###}";
        public const String DATE_FROMAT_DISPLAY = "MMMM dd, yyyy";
        //public const String DATE_FROMAT_FOR_FILE_NAME = "ddMMyyyy";
        //public const String DATE_SHORT_DISPLAY = "dd/MM/yyyy";
        //public const String REPORT_DATE_FORMAT = "d MMM yyyy";
        //public const String DATE_FROMAT_DISPLAY_WITH_TIME = "dddd, MMMM dd, yyyy hh:mm:ss tt";
    }
    #endregion

    #region User Roles
    public class UserRoles
    {
        public const String ADMINISTRATOR = "Administrator";
        public const String MEMBER = "Member";
    }
    #endregion

    #region UI CSS Classes
    public class UI
    {
        public const String ERROR_MESSAGE_CLASS = "ErrorMessage";
        public const String BOLD_MESSAGE_CLASS = "MessageCommon";
        public const String MESSAGE_BOX_CLASS = "MessageBox";
        public const String ERROR_MESSAGE_BOX_CLASS = "ErrorMessageBox";
        public const String SELECTION_CHECK_BOX_NAME = "chkSelection";
        public const String IMAGE_STEP_ACTIVE = "/Images/StepIndicatorActive.gif";
        public const String IMAGE_STEP_ACTIVE_PREV = "/Images/StepIndicatorInActivePrev.gif";
        public const String CUSTOM_ATTR_RADIO_INDEX = "RadioIndex";
    }
    #endregion

    #region Query String Params
    public class QueryString
    {       
        public const String ID = "ID";
        public const String LOG_OUT = "Logout";        
        public const String DELETE = "Delete";
        public const String EDIT = "Edit";        
        public const String GROUP_CODE = "GroupCode";
    }

    #endregion

    #region Cookie Variables
    public class Cookie
    {
        public const String BASE = "McAID";
        public const String REMEMBER_ME = "RememberMe";
    }

    #endregion

    #region Email Templates
    public class EmailTemplate
    {
        public const String GENERAL_EMAIL_TEMPLATE = "GeneralTemplate.html";
    }
    /// <summary>
    /// Custom Tag Constants in the Email Templates
    /// </summary>
    public class ETConstants
    {
        public const String MESSAGE = "[*MESSAGE*]";
    }
    #endregion

    #region Messages
    public static class Message
    {
        public const String EDIT_PERMISSION_DENIED = "You do not have permission to edit this data.";
        public const String DELETE_PERMISSION_DENIED = "You do not have permission to delete this data.";
    }    
    #endregion

    #region Reports
    public static class Reports
    {
        //Coverage
        public const String COVERAGE_GEOGRAPHICAL = "/Reports/rptCoverage.rpt";
        public const String COVERAGE_PROGRAM = "/Reports/rptCoverageProgram.rpt";
        //public const String COVERAGE_STAFF = "/Reports/rptCovOrgNStaff.rpt";
        public const String COVERAGE_STAFF = "/Reports/rptCoverageStaffList.rpt";
        public const String COVERAGE_WAREHOUSE = "/Reports/rptCoverageWH.rpt";
        public const String COVERAGE_STAFF_FOR_PROGRAM = "/Reports/rptCovOrgNStaff.rpt";
        public const String COVERAGE_VOLUNTEER_LIST = "/Reports/rptCoverageVolunteerList.rpt";
        public const String COVERAGE_FDP_LIST_FOR_DISTRICT = "/Reports/rptCovFDPList.rpt";
        public const String COVERAGE_SERVICE_SITE_LIST_FOR_DISTRICT = "/Reports/rptCoverageSrvSiteList.rpt";
        
        //Administration
        public const String ADMINISTRATION_SYSTEM_USER_PROFILE = "/Reports/rptSystemUser.rpt";
        public const String ADMINISTRATION_REGISTRATION_CONFIGURATION = "/Reports/rptRegNConfigN.rpt";
        
        //Commodity
        public const String COMMODITY_INVENTORY = "/Reports/rptCommIIQDist.rpt";
        public const String COMMODITY_IMP_SUMMARY = "/Reports/rptCommodityImpSummary.rpt";
        public const String COMMODITY_WHTRAN_STACKING = "/Reports/rptWHTranCommStacking.rpt";
        public const String COMMODITY_WHTRAN_WAYBILL_REG = "/Reports/rptWHTranWayBillReg.rpt";
        public const String COMMODITY_WHTRAN_MSR = "/Reports/rptWHTranCommMSR.rpt";
        public const String COMMODITY_WHTRAN_CSR = "/Reports/rptWHTranCommCSR.rpt";
        public const String COMMODITY_BL = "/Reports/rptCommodityBL.rpt";
        public const String COMMODITY_SURVEY = "/Reports/rptCommoditySurvey.rpt";
        public const String COMMODITY_SURVEY_CONTAINER = "/Reports/rptCommoditySurveyContainer.rpt";
        public const String COMMODITY_WH_TRAN_LOSS_STATUS = "/Reports/rptWHTranLossStatus.rpt";
        public const String COMMODITY_SURVEY_SUMMARY = "/Reports/rptCommoditySurveySummary.rpt";
    }
    #endregion
}
